package com.itheima.myreflect2.Student.threaddemo9;

/**
 * @program: Myset
 * @description:
 * @author: xuejingjing
 * @create: 2021-06-19 12:21
 **/
public class Demo {
    public static void main(String[] args) {
        Ticket ticket = new Ticket();

        Thread th1 = new Thread(ticket);
        Thread th2 = new Thread(ticket);
        Thread th3 = new Thread(ticket);
        th1.setName("1号售票口");
        th2.setName("2号售票口");
        th3.setName("3号售票口");
        th1.start();
        th2.start();
        th3.start();

    }
}
